import { Component } from '@angular/core';
import { products } from '../product';

@Component({
  selector: 'app-product-list',
  templateUrl: './product-list.component.html',
  styleUrls: ['./product-list.component.css']
})
export class ProductListComponent {
  products = products;

  share() {
    window.alert('you click share button');
  }

  onNotify(productId:number) {
    window.alert('you click notify me button, productId = ' + productId);
  }
}
